package lexicalUnit;

import chalmersbot.Absyn.SubjectList;
import chalmersbot.Absyn.SubjectListElement;
import chalmersbot.Absyn.SubjectLst.Visitor;

public class CheckSubjectLst implements Visitor<String, Environ> {

	@Override
	public String visit(SubjectList p, Environ arg) {
		return p.subjectlst_.accept(new CheckSubjectLst(), arg) + " " + p.subjectwrd_.accept(new CheckSubjectWrd(), arg);
	}

	@Override
	public String visit(SubjectListElement p, Environ arg) {
		return p.subjectwrd_.accept(new CheckSubjectWrd(), arg);
	}

}
